/*
 * 软件版权: Mr.LEE
 * 修改记录:
 * 修改日期     修改人员  修改说明
 * ========    =======  ============================================
 * 2020/12/28  LJH  新增
 * ========    =======  ============================================
 */
package com.lagou.cloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能说明:
 *
 * @author LJH
 */
@RestController
@RequestMapping(value = "/email")
public class EmailController {

    @GetMapping(value = "/send")
    public String sendEmail(@RequestParam("email") String email, @RequestParam("content") String content) {
        //模拟发送邮件，这里用控制台打印来代替
        System.out.println("向" + email + "发送验证码，验证码为：" + content);
        return "success";
    }
}
